import DisplayLabel from "@/components/displayLabel";
import { Descriptions } from "antd";

const BaseInfo = ({ fullData }) => {
  return <>
    <Descriptions
      bordered
      column={2}
      labelStyle={{
        textAlign: 'center',
        width: '165px'
      }}
    >
      <Descriptions.Item label="数据资源名称">{fullData.themeName}</Descriptions.Item>
      <Descriptions.Item label="类型"><DisplayLabel value={fullData.themeType} type={'data_subject_type'} /></Descriptions.Item>
      <Descriptions.Item label="请求方式">{fullData.accessType}</Descriptions.Item>
      <Descriptions.Item label="资源标识">{fullData.themeSign}</Descriptions.Item>
      <Descriptions.Item label="资源描述" span={2}>{fullData.themeRemark}</Descriptions.Item>
    </Descriptions>
  </>;
}

export default BaseInfo;